execute as @s[tag=!return_item] run return fail
item replace entity @s weapon.mainhand from entity @n[tag=tempIU.RI] weapon.mainhand
kill @n[tag=tempIU.RI]
tag @s remove return_item